﻿using System;
using ProtoBuf;
using ZyGames.Framework.Common;
using ZyGames.Framework.Collection;
using ZyGames.Framework.Model;

namespace ZyGames.DZPocker.Model
{
	/// <summary>
	/// 成就配置
	/// </summary>
	[Serializable, ProtoContract]
	[EntityTable(AccessLevel.ReadOnly, DbConfig.Config)]
	public class AchievementInfo : ShareEntity
	{

		/// <summary>
		/// </summary>
		public AchievementInfo()
			: base(true)
		{

		}

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(1)]
		[EntityField(true)]
		public int Id { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(2)]
		[EntityField]
		public string Name { get; set; }

		/// <summary>
		/// 成就类型
		/// </summary>        
		[ProtoMember(3)]
		[EntityField]
		public AchieveType Type { get; set; }

		/// <summary>
		/// 成就达到值
		/// </summary>        
		[ProtoMember(4)]
		[EntityField]
		public int TargetNum { get; set; }


		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(5)]
		[EntityField]
		public string HeadIcon { get; set; }

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(6)]
		[EntityField]
		public string Description { get; set; }


	}
}